<%@ Page Language="vb" AutoEventWireup="false" Codebehind="findusers.aspx.vb" Inherits="georgia_globaltp.findusers" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title>findusers</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<LINK href="htmlformatting/stylesheet.css" type="text/css" rel="stylesheet">
		<script language="javascript">
	function userdetail(uid, cid, vid)
{
document.edituser.uid.value = uid;
document.edituser.cid.value = cid;
document.edituser.vid.value = vid;
document.edituser.action = "Adm_edituser.aspx";
document.edituser.submit();
}
		</script>
	</HEAD>
	<body leftMargin=0 background="<%=imgpath%>/background.jpg" 
topMargin=0 MS_POSITIONING="GridLayout">
		<%if Len(Msg)>0 then%>
		<font color="red"><b>
				<%=Msg%>
			</b></font>
		<%end if%>
		<form id="findusers" method="post" runat="server">
			<table cellSpacing="0" cellPadding="0" width="100%" border="0">
				<tr>
					<td id="header" colSpan="2">
						<table class="box" cellSpacing="0">
							<tr>
								<td class="header" colSpan="2">Find/Edit User</td>
							</tr>
							<tr>
								<td>User ID :</td>
								<td><asp:textbox id="vid" tabIndex="0" runat="server" maxlength="15"></asp:textbox></td>
							</tr>
							<tr>
								<td>First Name :</td>
								<td><asp:textbox id="txtFname" tabIndex="2" runat="server" maxlength="50"></asp:textbox></td>
							</tr>
							<tr>
								<td>Last Name :</td>
								<td><asp:textbox id="txtLname" tabIndex="3" runat="server" maxlength="50"></asp:textbox></td>
							</tr>
							<tr>
								<td>Location :</td>
								<td><asp:textbox id="txtLoc" tabIndex="4" runat="server" maxlength="50"></asp:textbox></td>
							</tr>
							<tr>
								<td>Records Per Page :</td>
								<td><asp:dropdownlist id="RPP" tabIndex="5" Runat="server"></asp:dropdownlist></td>
							</tr>
							<tr>
								<td align="center" colSpan="2">
									<hr>
									<input type=hidden value="<%=sortby%>" name=sortby 
            > <input type="hidden" value="1" name="PG"> <input type=hidden 
            value="<%=aUserSession(cINCIDCONTEXT)%>" name=sCID 
            > <input type=hidden 
            value="<%=aUserSession(cINGIDCONTEXT)%>" name=sVID 
            >
									<asp:button id="btnFind" Runat="server" Text="Find"></asp:button>&nbsp;&nbsp;
									<asp:button id="btnCancel" Runat="server" Text="Cancel"></asp:button></td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</form>
		<%If IsPostBack Then%>
		<form method="post" name="usersinfo">
			<table class="majorbox" cellSpacing="0" width="100%">
				<TBODY>
					<!--<tr>
						<td class="header">Search Results</td>
					</tr>-->
					<tr>
						<td>
							<table class="minorbox" cellSpacing="0" width="100%" border="0">
								<%if IsNothing(vRs) then%>
								<TBODY>
									<tr>
										<td colSpan="7"><font face="verdana" size="2"><b>No users were found</b></font></td>
									</tr>
									<%else %>
									<tr>
										<td class="header">Search Results</td>
									</tr>
									<tr>
										<td>
											<table class="minorbox" cellSpacing="0" width="100%">
												<tr>
													<td class="gridheader"><A href="findusers.aspx<%=sQS%>&amp;action=Refind&amp;sortby=UID&amp;PG=<%=PG%>%>" ><b>User 
																ID</b></A>
													</td>
													<td class="gridheader"><A href="findusers.aspx<%=sQS%>&amp;action=Refind&amp;sortby=FIRSTNAME&amp;PG=<%=PG%>" >First 
															Name</A>
													</td>
													<td class="gridheader"><A href="findusers.aspx<%=sQS%>&amp;action=Refind&amp;sortby=LASTNAME&amp;PG=<%=PG%>%>" >Last 
															Name</A>
													</td>
													<td class="gridheader"><A href="findusers.aspx<%=sQS%>&amp;action=Refind&amp;sortby=LOCATION&amp;PG=<%=PG%>%>" >Location</A>
													</td>
													<td class="gridheader"><A href="findusers.aspx<%=sQS%>&amp;action=Refind&amp;sortby=SUPERVISOR&amp;PG=<%=PG%>%>" >Supervisor</A>
													</td>
													<td class="gridheader"><A href="findusers.aspx<%=sQS%>&amp;action=Refind&amp;sortby=ACTIVE&amp;PG=<%=PG%>%>" >Active</A>
													</td>
												</tr>
												<%
		
										Response.write(HTMLString)
		if Not isnothing(request("sortby")) then
			sQS = sQS & "&sortby=" & request("sortby")
		end if%>
											</table>
										</td>
									</tr>
									<tr>
										<td align="center">
											<%if nNumPages > 0 then
		DisplayPaginationControls()
		response.write(HTMLDispage)%>
											<%end if%>
										</td>
									</tr>
									<%end if%>
									<tr>
										<td><input type="hidden" name="uid"> <input type="hidden" name="vid"> <input type="hidden" name="cid"></td>
									</tr>
		</form>
		<%end if%>
		</TBODY></TABLE>&nbsp; </TD></TR></TBODY></TABLE>
	</body>
</HTML>
